﻿import QtQuick 2.15
import QtQuick.Controls 2.15
import QtGraphicalEffects 1.15


Item {
    property string imgSrc: "qrc:/images/maoguang"

    property int borderRadius: 20

    Image{
        id:image
        anchors.centerIn: parent
        source: imgSrc
        smooth: true
        visible: false
        width:parent.width
        height: parent.height
        fillMode: Image.PreserveAspectCrop
    }
    Rectangle{
        id:mask
        color:"black"
        anchors.fill: parent
        radius: borderRadius
        visible: false
        smooth: true
        antialiasing: true
    }

   OpacityMask{
       anchors.fill: image
       source: image
       maskSource: mask
       visible: true
       antialiasing: true
   }

}
